jetcrab\ast\expressions/
primary.rs

1use crate::ast::common::Span;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct Super {
6    pub span: Option<Span>,
7}
8
9#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
10pub struct MetaProperty {
11    pub meta: Box<crate::ast::node::Node>,
12    pub property: Box<crate::ast::node::Node>,
13    pub span: Option<Span>,
14}
15
16#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
17pub struct YieldExpression {
18    pub argument: Option<Box<crate::ast::node::Node>>,
19    pub delegate: bool,
20    pub span: Option<Span>,
21}
22
23#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
24pub struct AwaitExpression {
25    pub argument: Box<crate::ast::node::Node>,
26    pub span: Option<Span>,
27}
28
29#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
30pub struct RegExp {
31    pub pattern: String,
32    pub flags: String,
33    pub span: Option<Span>,
34}